System and method for detecting trachea

ABSTRACT

Disclosed are systems, devices, and methods for detecting a trachea, an exemplary system comprising an imaging device configured to obtain image data and a computing device configured to generate a three-dimensional (3D) model, identify a potential connected component in a first slice image, identify a potential connected component in a second slice image, label the first slice image as a top slice image, label the connected component in the top slice image as an active object, associate each connected component in a current slice image with a corresponding connected component in a previous slice image based on a connectivity criterion, label each connected component in the current slice image associated with a connected component of the preceding slice image as the active object, and identify the active object as the trachea, based on a length of the active object.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a continuation of U.S. patent application Ser. No. 15/997,258, filed on Jun. 4, 2018, which is a continuation of U.S. patent application Ser. No. 15/672,612, now U.S. Pat. No. 9,990,721, filed on Aug. 9, 2017, which is a continuation of U.S. patent application Ser. No. 15/383,044, now U.S. Pat. No. 9,741,115, filed on Dec. 19, 2016, which is a continuation of U.S. patent application Ser. No. 14/755,708, now U.S. Pat. No. 9,530,219, filed on Jun. 30, 2015, which claims the benefit of and priority to U.S. Provisional Patent Application Ser. No. 62/020,257, filed on Jul. 2, 2014, the entire contents of each of which being incorporated by reference herein.

FIELD

The present disclosure relates to systems and methods for detecting a trachea. More particularly, the present disclosure relates to systems and methods that detect a trachea based on slice images of a three-dimensional volume of a chest.

BACKGROUND

Visualization techniques related to visualizing a chest have been developed so as to help clinicians perform diagnoses and/or surgeries on organs or other parts contained within the chest. Visualization is especially important for identifying a location of a diseased region. Further, when treating the diseased region, additional emphasis is given to identification of the particular location of the diseased region so that a surgical operation is performed at the correct location in the chest.

In the past, scanned two-dimensional images of the chest have been used to aid in visualization. In order to visualize a lung from scanned two-dimensional images of the chest, it is important to determine whether or not an area of the two-dimensional images is a part of the lung. Thus, detecting a starting location, for example, a location of an organ or other part that is connected to or is a part of the lung, is also important for identifying the lung. In one example, the trachea can be used as the starting location because the trachea has a substantially constant diameter along its length and is known to be connected to the lung.

SUMMARY

Provided in accordance with the present disclosure is a system for detecting a trachea of a patient.

In an aspect of the present disclosure, the system includes an imaging device configured to obtain image data of the patient, and a computing device including a processor and a memory storing instructions which, when executed by the processor, cause the computing device to generate a three-dimensional (3D) model of a chest of the patient based on the image data, generate slice images of the 3D model along an axial direction, identify a potential connected component in a first slice image of the generated slice images, identify a potential connected component in a second slice image of the generated slice images, wherein the second slice image is immediately subsequent to the first generated slice image, confirm that the potential connected component of the first and second slice images are connected, label the potential connected component as a connected component, label the first slice image as a top slice image of the generated slice images, label the connected component in the top slice image as an active object, associate each connected component in a current slice image of the generated slice images with a corresponding connected component in a previous slice image based on a connectivity criterion, label each connected component in the current slice image associated with a connected component of the preceding slice image as the active object, and identify the active object as the trachea, based on a length of the active object.

In another aspect of the present disclosure, the image data is obtained by an imaging device using a tomographic technique, radiography, tomogram produced by a computerized axial tomography scan, magnetic resonance imaging, ultrasonography, contrast imaging, fluoroscopy, nuclear scans, or positron emission tomography.

In a further aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image.

In another aspect of the present disclosure, the slice images are spaced at an equal distance apart from each other.

In a further aspect of the present disclosure, the instructions further cause the computing device to calculate a length of a finalized active object by multiplying a number of slice images contained in the finalized active object minus one and the distance between each slice image.

In another aspect of the present disclosure, when the length of the finalized active object is greater than or equal to 70 mm, the instructions further cause the computing device to indicate that the trachea is identified.

In a further aspect of the present disclosure, when the length of the finalized active object is greater than or equal to 30 mm but less than 70 mm, the instructions further cause the computing device to indicate that the trachea is potentially identified.

In another aspect of the present disclosure, when the length of the finalized active object is less than 30 mm, the instructions further cause the computing device to indicate that the trachea is not identified.

In a further aspect of the present disclosure, a connected component of the current slice image is associated with the corresponding connected component in the previous slice image when coordinates of a pixel in the connected component of the current slice image matches coordinates of a pixel in the corresponding connected component in the previous slice image.

In another aspect of the present disclosure, a connected component of the current slice image is associated with the corresponding connected component in the previous slice image when a difference between a center of mass of the connected component of the current slice image and a center of mass of the corresponding connected component in the previous slice image is less than a predetermined value.

In a further aspect of the present disclosure, a connected component of the current slice image is associated with a corresponding connected component in the previous slice image when a difference between an area of the connected component of the current slice image and an area of the corresponding connected component in the previous slice image is less than a predetermined value.

In another aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and wherein the association parameter is an area ratio calculated by dividing an area of the connected component in the current slice image by an area of the corresponding connected component in the previous slice image.

In a further aspect of the present disclosure, wherein the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and wherein the association parameter is a ratio between a number of coordinates of the connected component of the current slice image, which match coordinates of the corresponding active object in the previous slice image, and a number of non-matching coordinates of the connected component of the current slice image

In another aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and wherein the association parameter is an area of the connected component of the current slice image.

In a further aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and remove the label of the corresponding active object of the previous slice as an active object when the association parameter is greater than a predetermined value.

In another aspect of the present disclosure, the instructions further cause the computing device to remove the label of the connected component of the current slice as an active object when the association parameter is greater than the predetermined value.

In a further aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and wherein an active object is finalized when the association parameter is less than a predetermined value.

In another aspect of the present disclosure, the instructions further cause the computing device to finalize the active object in the previous slice image based on an association parameter, and label the connected component of the current slice as the active object when the association parameter is greater than or equal to a first predetermined value and less than or equal to a second predetermined value.

Any of the above aspects and embodiments of the present disclosure may be combined without departing from the scope of the present disclosure.

BRIEF DESCRIPTION OF THE DRAWINGS

Objects and features of the presently disclosed systems and methods will become apparent to those of ordinary skill in the art when descriptions of various embodiments are read with reference to the accompanying drawings, of which:

FIG. 1 is a schematic diagram of an example device which may be used to detect a trachea in a 3D model of a patient's lungs, in accordance with an embodiment of the present disclosure;

FIG. 2 depicts 2D slice images generated from the 3D model showing the trachea in the axial and coronal orientations, in accordance with embodiments of the present disclosure;

FIG. 3 is a graphical illustration of connected components in 2D slice images of a a patient's chest in accordance with embodiments of the present disclosure;

FIG. 4 is a graphical illustration of a planar view of 2D slice images of the patient's chest in accordance with embodiments of the present disclosure;

FIG. 5A is a flowchart of a method for detecting a trachea in accordance with embodiments of the present disclosure; and

FIG. 5B is a flowchart of a method for determining an association between 2D slice images in accordance with embodiments of the present disclosure.

DETAILED DESCRIPTION

The present disclosure is related to systems and methods for automatically detecting a trachea based on 2D slice images of a patient's chest. Identifying the trachea may be a necessary component of pathway planning for performing an ELECTROMAGNETIC NAVIGATION BRONCHOSCOPY® (ENB) procedure using an electromagnetic navigation (EMN) system.

An ENB procedure generally involves at least two phases: (1) planning a pathway to a target located within, or adjacent to, the patient's lungs; and (2) navigating a probe to the target along the planned pathway. These phases are generally referred to as (1) “planning” and (2) “navigation.” By detecting the trachea, the lung can be visually distinguished from areas outside of the lung because the lung is connected to the trachea. An example of the planning software described herein can be found in U.S. Pat. Nos. 9,459,770, 9,925,009, and 9,639,666, all of which were filed by Covidien LP on Mar. 15, 2013, and entitled “Pathway Planning System and Method,” all of which are incorporated herein by reference. An example of the planning software can be found in commonly assigned U.S. Pat. No. 9,770,216 entitled “SYSTEM AND METHOD FOR NAVIGATING WITHIN THE LUNG” the entire contents of which are incorporated herein by reference.

Prior to the planning phase, the patient's lungs are imaged by, for example, a computed tomography (CT) scan, although additional applicable methods of imaging will be known to those skilled in the art. The image data assembled during the CT scan may then be stored in, for example, the Digital Imaging and Communications in Medicine (DICOM) format, although additional applicable formats will be known to those skilled in the art. The CT scan image data may then be loaded into a planning software application (“application”) to be processed for generating a 3D model which may be used during the planning phase of the ENB procedure.

The application may use the CT scan image data to generate a 3D model of the patient's lungs. The 3D model may include, among other things, a model airway tree corresponding to the actual airways of the patient's lungs, and showing the various passages, branches, and bifurcations of the patient's actual airway tree. While the CT scan image data may have gaps, omissions, and/or other imperfections included in the image data, the 3D model is a smooth representation of the patient's airways, with any such gaps, omissions, and/or imperfections in the CT scan image data filled in or corrected.

The planning phase generally involves identifying at least one target in the 3D model, and generating a pathway to the target. The pathway will generally run from the patient's mouth, through the trachea and connected airways, to the target. However, in order to generate the pathway to the target, the location of the trachea within the 3D model must be known.

As described in more detail below, the application will attempt to automatically detect the trachea within the 3D model. However, there may be instances where automatic detection of the trachea fails. In such instances, the trachea may need to be manually identified and marked. This process is more fully described in commonly-owned U.S. Pat. No. 9,754,367 entitled “Trachea Marking”, filed on Jul. 2, 2014, by Lachmanovich et al., the entire contents of which are hereby incorporated by reference.

The trachea provides a passage way for breathing. The trachea is connected to the larynx and the pharynx in the upper end. In particular, the upper part of the trachea extends substantially linearly from the larynx and pharynx and behind the sternum. The lower end of the trachea branches into a pair of smaller tubes, i.e., primary bronchi, each tube connecting to a lung. The main carina is a cartilaginous ridge formed by the branching of the trachea into the primary bronchi. The diameter of the trachea is substantially constant along its length (i.e., the axial direction), while the size of the lung changes substantially along the same direction as the length of the trachea. Thus, by analyzing 2D slice images of the 3D model, the trachea may be detected.

FIG. 1 shows an image processing device 100 that may be used during the planning phase of an ENB procedure to detect the location of the trachea in the 3D model. Device 100 may be a specialized image processing computer configured to perform the functions described below. Device 100 may be embodied in any form factor known to those skilled in the art, such as, a laptop, desktop, tablet, or other similar computer. Device 100 may include, among other things, one or more processors 110, memory 120 storing, among other things, the above-referenced application 122, a display 130, one or more specialized graphics processors 140, a network interface 150, and one or more input interfaces 160. As noted above, 2D slice images of the 3D model may be displayed in various orientations. As an example, FIG. 2 shows 2D slice images of the 3D model of the patient's lungs in the axial and coronal orientations, with 2D slice image 210 generated along the axial plane and 2D slice image 220 generated along the coronal plane.

Both 2D slice images 210 and 220 show the trachea 212 and the main carina 214. The 2D slice images of the 3D model may show a high density area with high intensity and a low density area with low intensity. For example, bones, muscles, blood vessels, or cancerous portions are displayed with higher intensity than an inside area of airways of the lung.

In an aspect, the 2D slice images may be generated to depict the axial, coronal, and sagittal views of the patient at a given location. For example, at each intersecting point of the 3D model, there may be three different 2D slice images generated in the three independent directions. These 2D slice images may be reformatted for display. For example, application 122 may convert a color space of the 2D slice images to another color space suitable for display and perform imaging processes, e.g., scale, rotation, translation, or projection, to display the 2D slice images as intended.

The 2D slice images may be binarized by using a region growing algorithm. Based on the region growing algorithm and starting with a seed pixel, every pixel in the 2D slice images of the 3D model is checked to determine whether a Hounsfield value assigned to each pixel is less than a threshold value and whether each pixel is connected to the seed pixel. When it is determined that a value assigned to a pixel has a Hounsfield value less than the threshold value and is connected to the seed pixel, the Hounsfield value of the pixel is set to one or the maximum value. Otherwise, the Hounsfield value of the pixel is set to zero or the minimum value. As part of the region growing algorithm, the threshold is selected with a high enough value to cause leakage in the lung, and thus fill the lungs with intensity values leaked from the airways.

After every pixel in the 2D slice images of the 3D model is set to the maximum or minimum value, the 2D slice images will have only 2 colors of pixels. The result is a set of 2D slice images where the pixels having the maximum Hounsfield value would appear white, and the pixels having the minimum Hounsfield value would appear black. In some instances, the values of pixels in the 2D slice images of the 3D model are inversed so that the lung regions are shown in black and the non-lung regions are shown in white or another color. The binarized 2D slice images may show white regions as non-lung areas (e.g., bones, stomach, heart, blood vessels, walls of airways, etc.) and black regions as lung areas (e.g., the lung, the trachea, and connected components). As described in more detail below, connected components are areas of a 2D slice image which are identified as having corresponding areas in one or more of the other 2D slice images, and thus may represent the patient's lungs or trachea.

FIG. 3 illustrates three 2D slice images generated based on the 3D model in accordance with an embodiment of the present disclosure. Image 305 is generated along the axial direction, image 310 is generated along the sagittal direction, and image 315 is generated along the coronal direction. Black areas shown in the three images 305, 310, and 315 are lung regions, and white areas included in the three images 305, 310, and 315 are non-lung areas. The white areas may represent blood vessels and walls of airways. In a case where an interior area of connected components is sufficiently large and has a lower density (e.g., blood, air, or coarse space) than tissue making up the lung regions, a black area also appears. In this sense, the connected components include a lung area as well. For example, connected components in the image 305 are the left lung 320, the right lung 325, the left primary bronchus 330, and the right primary bronchus 335. White areas inside the left lung 320 and the right lung 325 are not connected components but are blood vessels or walls of airways.

The upper part of the trachea extends substantially linearly from the larynx and pharynx and behind the sternum or breastbone. The lower end of the trachea branches into a pair of smaller tubes, i.e., primary bronchi, each tube connecting to a lung. The diameter of the trachea is substantially constant along its length (i.e., the axial direction), while the size of the lung changes substantially along the same direction as the length of the trachea. Thus, by analyzing areas of connected components in each 2D slice image generated based on the 3D model, the trachea may be detected. For this reason, images generated along the axial direction may be analyzed to detect the trachea in this present disclosure. In other embodiments, images generated along the other two directions may also be used to detect the trachea.

FIG. 4 shows 2D slice images generated from the 3D model in accordance with embodiments of the present disclosure. Image 405 is a coronal image of the patient depicting the axial locations along the patient at which axial images 410 a-430 b are identified and processed in accordance with the present disclosure. For example, image 410 a is taken from an axial position along the chest indicated by the top gray line, image 415 a is taken from another axial position along the chest indicated by the second gray line, image 420 a is taken from another axial position along the chest indicated by the third gray line, etc.

The axial locations of the images 410 a-430 b may be spaced an equal distance from each other, meaning that a distance between any two neighboring 2D slice images is the same distance D. The axial 2D slice images 410 a, 415 a, 420 a, 425 a, and 430 a depict a portion of the chest of the patient at different locations. As a result of the binarization, each of these images 410 a, 415 a, 420 a, 425 a, and 430 a show black enclosed areas which represent the trachea and or the lung tissue.

A process for detecting the trachea may be based on the identified connected components in each axial 2D slice image 410 a, 415 a, 420 a, 425 a, and 430 a. Generally, a first axial 2D slice image is analyzed to identify one or more identified areas which satisfy the binarization criteria (i.e., are likely either trachea or lung). In addition to identifying areas of the axial 2D slice image which satisfy the binarization criteria, an initial connected component analysis is done which filters out any portion of the axial 2D slice image 410 a that connects to the picture borders. Further, connected components which are above or below a certain size threshold are also filtered out. The remaining connected components of any one axial image slice, e.g. 410 a, is associated with an active object depending on a connectivity criteria with the connected components in other images. An axial connected component analysis is undertaken in which a determination is made as to whether connected components in two successive axial 2D slice images geographically overlap with one another. Geographical overlap can be determined by comparing coordinates of the active object in the successive images and determining if the same coordinates (e.g. X and Y coordinates) appear in the active objects of successive images. If so, the connected components from the two axial 2D slice images are associated with each other and are both correspondingly labeled as an active object. A connected component labeled as the active object is a candidate to be identified as the trachea. When the additional connected components do not geographically overlap with the one or more connected components from the previous 2D slice image, the additional connected components are labeled as a new active object. Further, if in a subsequent axial slice it is determined that there are no connected components objects which overlap with the preceding image, the active object last identified in the preceding image is finalized. The above-described steps are performed on each 2D slice image until each connected component in each coronal 2D slice image is identified and, where appropriate, classified as an active object.

The details of the process described above are further clarified with reference to FIG. 4. In an embodiment, the top axial 2D slice image 410 a is processed first to identify or label the connected component 411. In one embodiment, any connected component in the top axial 2D slice image 410 a is labeled as an active object. As a result, in image 410 b of the filtering described above, a single active object 412 is shown.

Next, the second axial 2D slice image 415 a is processed in a similar manner as coronal 2D slice image 410 a to identify three connected components 416, 417, and 418. Again, the filtering described above is undertaken, resulting in the identification of three active objects 416, 417, and 418 depicted in image 415 b. A determination is made as to whether one or more of the connected components 416-418 geographically overlap with connected components (e.g., 411) in the previous axial 2D slice image. As a result of this analysis, active objects 413 and 414 are new active objects, with no connected component to compare with in the preceding axial 2D slice image 410 b. However, connected component 416 geographically overlaps with and is associated with the connected component 411 in the 2D slice image 410 a, thus, connecting the two connected components 416 and 411 vertically (i.e. from axial slice to axial slice) to each other. As a result the associated connected components 416 and 411 share a common active object label 412

With reference to a third axial 2D slice image 420 a, three connected components 421-423 are identified. Following the filtering described above, each connected component 421-423 is separately compared with the connected components 416-418 of the second axial 2D slice image 415 a. The connected component 421 geographically overlaps with the connected component 416, and has a similar size or area with that of the connected component 416. Thus, the connected component 421 is associated with the connected component 416 and labeled as the same active object 412 as the connected component 416, which was based on its comparison to connected component 411 in axial image slice 410 a.

The connected components 422 and 423 geographically overlap with the connected components 417 and 418, respectively and are thus candidates to be labeled as active objects 413 and 414 based on this overlap. The connected components 422 and 423, however, must also be filtered by size, as described above. Because the areas of the connected components 422 and 423 are larger than a predetermined maximum size they must be filtered out of consideration as an active object. In FIG. 420b , these connected components are shown as filtered out based on the change of color from black to white. In contrast, connected component 421, which is associated with active object 412 remains black. In the context of the present disclosure, because the trachea is known to have a substantially consistent diameter along its length, and because that diameter is generally within a well known range of between about 27 and 13 mm for men, and between about 23-10 mm in women, when a connected component is identified as having a substantially larger area than an area of the corresponding connected component in the previous 2D slice image, an organ represented by such connected component is determined to be something other than the trachea and thus excluded from the analysis. As an alternative or additional step, because the connected components 422 and 423 have areas that are larger than those of connected components 416 and 418, the connected components 422 and 423 may also be considered too large and thus not part of the trachea. Further, the connected components 417 and 418 of the second axial 2D slice image 415 b may be re-labeled to remove the active object designation. Consequently, the 2D slice images 410 b, 415 b and 420 b have only one active object 412.

As described briefly above, a connected component of separate 2D slice images may be associated with a connected component of an adjacent upper 2D slice image based on connectivity criteria. The connectivity criteria may include consideration of equality of coordinates on the current 2D slice image with coordinates of the adjacent upper 2D slice image. In an embodiment, the coordinates of a pixel of a 2D slice image may be based on the Cartesian coordinate system, where the origin may be located in an upper left corner of the 2D slice image and coordinates increase from left to the right and from top to bottom. Alternatively, the coordinates of a pixel may be based on another coordinate system, such as polar coordinate system, which is suitable for intended purposes.

The geometric overlap between two connected components, also called an association parameter, from two different images may be calculated may be based on the number of pixels of a connected component of the current 2D slice image which match coordinates of pixels of a connected component of the adjacent upper 2D slice image. Alternatively the overlap may be assessed based on a center of mass. That is, when a center of mass of a connected component of the current 2D slice image is similar to that of a connected component of the adjacent upper 2D slice image, the connected component of the current 2D slice image is associated with the connected component of the adjacent upper 2D slice image. The center of mass may be calculated with an equal weight to every pixel in a connected component as follows:

${C_{x} = {{\frac{\sum\limits_{i = 1}^{N}\; x_{i}}{N}\mspace{14mu} {and}\mspace{14mu} C_{y}} = \frac{\sum\limits_{i = 1}^{N}\; y_{i}}{N}}},$

where C_(x) and C_(y) are x-axis and y-axis coordinates of the center of mass, respectively, x_(i) and y_(i) are coordinates of the i-th pixel of a connected component, and N is the total number of pixels contained in the connected component.

In another aspect, the connectivity criteria may be based on an area ratio. In particular, a ratio of an area of a non-overlapping portion of a connected component of the current 2D slice image to an area of an overlapping area of the connected component of the current slice may be compared with a first predetermined value. For example, the ratio may be computed by dividing an area of an overlapping portion of a connected component of the adjacent upper 2D slice image by an area of a non-overlapping portion of the connected component of the adjacent upper 2D slice image. When the ratio is less than the first predetermined value, the connected component of the current 2D slice image and the corresponding connected component of the adjacent upper 2D slice image are associated.

Returning to FIG. 4, a fourth axial 2D slice image 425 a is taken along the axial direction where three connected components 426-428 are detected. Using the connectivity criteria and filtering techniques described above, the connected component 426 is associated with the connected component 421, the connected component 427 is associated with connected component 422, and the connected component 428 is associated with the connected component 423. Since the connected components 422 and 423 were previously filtered out as being tool larger and not given the label active object, the connected components 427 and 428 are also filtered out and not designated as active objects in FIG. 425b . The connected component 426, however, is associated with the connected component 421, and is ultimately labeled as part of active object 412, as shown in the image 425 b.

Axial 2D slice image 430 a is the fifth 2D slice image from the top 2D slice image 410 a. Again, three connected components 431-433 are detected in the 2D slice image 430 a. Based on the connectivity criteria and the filtering processes described above, the connected component 431 is associated with the connected component 426, the connected component 432 is associated with connected component 427, and the connected component 433 is associated with the connected component 428. As in image 425 b, because the connected components 427 and 428 are too larger to be labeled as active objects, the connected components 432 and 433 are likewise not associated with an active objects and are removed from the analysis. The connected component 431 however, is associated with the connected component 426 is, which has previously been associated with active object 412 as shown in the image 430 b.

As shown in the 2D slice images 430 a and 430 b, the area of the connected component 431 is small compared to the area of the connected component 426 in the 2D slice image 425 a, the connected component 421 in the 2D slice image 420 a, the connected component 416 in the 2D slice image 415 a, and the connected component 411 in the 2D slice image 410 a, all of which are associated with the active object 412. In at least one embodiment because the ratio of the area of the connected component 431 to the area of the connected component 426 of the 2D slice image 425 a is below a threshold, the active object 412 including the connected components 411, 416, 421, 426, and 431 may be finalized, meaning that the active object 412 is closed. After the active object is finalized, no other connected components are associated with the active object.

When the active object 412 is finalized, the length of the active object may be calculated by multiplying the number of 2D slice images containing the active object by the distance between adjacent 2D slice images. Based on the length of the active object, a determination is made as to whether the active object is the trachea. In an aspect, if the length of the active object is greater than 70 millimeters (mm), the active object is identified as the trachea. In another aspect, if the length of the active object is greater than or equal to 30 mm and less than or equal to 70 mm, the active object is identified as the trachea. When the length of the active object is less than 30 mm, the active object is not identified as the trachea.

FIGS. 5A and 5B are flowcharts of a method 500 for automatically detecting a trachea in accordance with an embodiment of the present disclosure. The method 500 starts at step 505, in which a 3D model of a patient's lungs is generated. The 3D model may be based on CT scan image data obtained during a CT scan of the patient's chest and stored in the DICOM image format. In an aspect, the imaging modality may also be radiography, tomogram produced by a CAT scan, MRI, ultrasonography, contrast imaging, fluoroscopy, nuclear scans, and PET.

In step 510, 2D slice images may be generated from the 3D model. The generated 2D slice images may be binarized 2D slice images including only include black and white pixels. The 2D slice images may be generated along the axial direction. Alternatively, the 2D slice images are generated along a direction other than the axial direction. In an aspect, the 2D slice images are generated at an equal distance apart so that a distance between any two 2D slice images may be easily calculated. In another aspect, the 2D slice images may be generated at different distances but may include distance information indicating how far apart each 2D slice image is from the top 2D slice image.

In step 515, a connected component is identified in the 2D slice images. As noted above, connected components are enclosed regions in each image, with only one color pixels (e.g., black as shown in FIG. 4). Any connected component identified in the top 2D slice image is labeled as an active object in step 520. Active objects are considered as candidates for the trachea. In step 525, a counter i is set to two, and the next 2D slice image is examined.

FIG. 5B shows a flowchart for associating and labeling connected components as a part of the method 500 for automatically detecting a trachea. In step 526, a determination is made as to whether a connected component in the ith 2D slice image is associated with a connected component in the (i−1)th 2D slice image. In an aspect, a connected component in a current 2D slice image may be associated with a connected component in the previous 2D slice image based on a location of the connected component of each of the current and previous 2D slice images. When the connected components overlap, they are associated with each other. Otherwise, the connected components are not associated.

When a determination is made that a connected component in the current 2D slice image (i.e., ith 2D slice image) is not associated with a connected component in the previous 2D slice image (i.e., (i−1)th 2D slice image), the connected component of the current 2D slice image is labeled as an active object in step 528. Step 570 (FIG. 5A) is then performed.

When a determination is made that a connected component in the current 2D slice image is associated with a connected component in the previous 2D slice image in step 526, another determination is made as to whether the connected component of the previous 2D slice image is an active in step 530. After the labeling process, step 570 of FIG. 5A follows.

In a case where the connected component of the previous 2D slice image is labeled as an active object, an association parameter R is calculated between the connected components of the current 2D slice image and the previous 2D slice image in step 534. The association parameter is based on connectivity criteria, which is used to determine whether two connected components of neighboring 2D slice images are closely related.

In an aspect, the association parameter is an area ratio, which is a ratio of an area of a connected component of the current 2D slice image to an area of the corresponding connected component of the previous 2D slice image. In step 536, the association parameter is compared with two predetermined values. In a case where the association parameter R is less than a first predetermined value P₁, the connected component, which is labeled as the active object, of the previous 2D slice image is finalized in step 538. This case occurs when the area of the connected component of the current 2D slice image decreases significantly or is completely missing. For example, since the lower end of the trachea branches out, an image of the bottom of the trachea may show a connected component, an area of which is much smaller than a cross-sectional area of the trachea. The significant decrease in the area of a connected component may indicate that the bottom of a trachea is reached.

When the association parameter R is greater than or equal to the first predetermined value P₁ but less than or equal to a second predetermined value P₂, the connected component of the current 2D slice image is labeled as the active object in step 540. In this case, the connected component of the current 2D slice image is considered a continuation of the active object identified in the preceding 2D slice images (e.g., a trachea candidate).

When the association parameter R is greater than the second predetermined value P₂, the label of the connected component of the previous 2D slice image may be removed such that it is not labeled as an active object in step 542. This occurs when the area of the connected component of the current 2D slice image increases significantly. As a result, the association parameter may reach 100%. In such instances a second inquiry is made at step 541 as to whether the diameter of the connected component of the current image slice is greater than a predetermined threshold, for example 30 mm for a man and 25 mm for a woman. Such a diameter of connected component would indicate that connected component cannot be the trachea. Thus, the connected component of the previous 2D slice image is not considered as a trachea. In step 544, the label of the connected component of the current 2D slice image is also removed such that it is not labeled as an active object.

After steps 538, 540, and 544, a determination is made as to whether there is an unprocessed connected component in the current 2D slice image. When a determination is made that an unprocessed connected component exists, steps 526-546 are repeated until no additional unprocessed connected components are found in the current 2D slice image. When a determination is made that there are no more unprocessed connected components in the current 2D slice image, step 570 of FIG. 5A follows.

Turning now to FIG. 5A, the counter i is increased by one in step 570. In step 575, the counter i is compared with the number of 2D slice images, N. When the counter i is less than or equal to the number of 2D slice images, N, the method reiterates at step 526 illustrated in FIG. 5A. Otherwise, all connected components in each 2D slice image are processed. In step 580, a length of the active object is calculated.

In steps 585 and 586, the length of the active object is compared with a predetermined range of values. At step 590, if the length of the active object is larger than the predetermined values, it is determined to be the trachea. Similarly, at step 592, if the length of the active object is within the predetermined range, it is labeled as potentially being the trachea, and a clinician may have to confirm this before the next step of the ENB procedure can be undertaken. At step 595, if the active objects are smaller than the predetermined range, automatic detection of the trachea fails, and manual identification and marking of the trachea is necessary. In an aspect, the predetermined range is 30 mm to 70 mm. Thus, if the length of an active object is more than 70 mm, it is determined to be the trachea, and if the length of an active object is between 30 mm and 70 mm, it is labeled as potentially being the trachea. In this way, the method 500 automatically detects a trachea from the 2D slice images.

Returning now to FIG. 1, memory 120 includes application 122 such as EMN planning and procedure software and other data that may be executed by processors 110. For example, the data may be the CT scan image data stored in the DICOM format and/or the 3D model generated based on the CT scan image data. Memory 120 may also store other related data, such as medical records of the patient, prescriptions and/or a disease history of the patient. Memory 120 may be one or more solid-state storage devices, flash memory chips, mass storages, tape drives, or any computer-readable storage media which are connected to a processor through a storage controller and a communications bus. Computer readable storage media include non-transitory, volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media includes random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory or other solid state memory technology, CD-ROM, DVD or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store desired information and which can be accessed by device 100.

Display 130 may be touch-sensitive and/or voice-activated, enabling display 130 to serve as both an input device and an output device.

Graphics processors 140 may be specialized graphics processors which perform image-processing functions, such as processing the CT scan image data to generate the 3D model, and process the 3D model to generate the 2D slice images of the 3D model in the various orientations as described above, as well as the 3D renderings of the 3D model. Graphics processors 140 may further be configured to generate a graphical user interface (GUI) to be displayed on display 130. The GUI may include views showing the 2D image slices, the 3D rendering, among other things. In embodiments, graphics processors 140 may be specialized graphics processors, such as a dedicated graphics processing unit (GPU), which performs only the image processing functions so that the one or more general processors 110 may be available for other functions. The specialized GPU may be a stand-alone dedicated graphics card, or an integrated graphics card.

Network interface 150 enables device 100 to communicate with other devices through a wired and/or wireless network connection. In an embodiment, device 100 may receive the CT scan image data from an imaging device via a network connection. In other embodiments, device 100 may receive the CT scan image data via a storage device, such as a disk or other external storage media known to those skilled in the art.

Input interface 160 is used for inputting data or control information, such as setting values, text information, and/or controlling device 100. Input interface 160 may include a keyboard, mouse, touch sensor, camera, microphone, or other data input devices or sensors used for user interaction known to those skilled in the art.

Further aspects of image and data generation, management, and manipulation useable in either the planning or navigation phases of an ENB procedure are more fully described in commonly-owned U.S. Provisional Patent Application Ser. No. 62/020,220 entitled “Real-Time Automatic Registration Feedback”, filed on Jul. 2, 2014, by Brown et al.; U.S. Provisional Patent Application Ser. No. 62/020,177 entitled “Methods for Marking Biopsy Location”, filed on Jul. 2, 2014, by Brown.; U.S. Provisional Patent Application Ser. No. 62/020,240 entitled “System and Method for Navigating Within the Lung”, filed on Jul. 2, 2014, by Brown et al.; U.S. Provisional Patent Application Ser. No. 62/020,238 entitled “Intelligent Display”, filed on Jul. 2, 2014, by Kehat et al.; U.S. Provisional Patent Application Ser. No. 62/020,242 entitled “Unified Coordinate System for Multiple CT Scans of Patient Lungs”, filed on Jul. 2, 2014, by Greenburg.; U.S. Provisional Patent Application Ser. No. 62/020,245 entitled “Alignment CT”, filed on Jul. 2, 2014, by Klein et al.; U.S. Provisional Patent Application Ser. No. 62/020,250 entitled “Algorithm for Fluoroscopic Pose Estimation”, filed on Jul. 2, 2014, by Merlet.; U.S. Provisional Patent Application Ser. No. 62/020,261 entitled “System and Method for Segmentation of Lung”, filed on Jul. 2, 2014, by Markov et al.; U.S. Provisional Patent Application Ser. No. 62/020,258 entitled “Cone View—A Method of Providing Distance and Orientation Feedback While Navigating in 3D”, filed on Jul. 2, 2014, by Lachmanovich et al.; and U.S. Provisional Patent Application Ser. No. 62/020,262 entitled “Dynamic 3D Lung Map View for Tool Navigation Inside the Lung”, filed on Jul. 2, 2014, by Weingarten et al., the entire contents of all of which are hereby incorporated by reference.

Although embodiments have been described in detail with reference to the accompanying drawings for the purpose of illustration and description, it is to be understood that the inventive processes and apparatus are not to be construed as limited thereby. It will be apparent to those of ordinary skill in the art that various modifications to the foregoing embodiments may be made without departing from the scope of the disclosure. 

1-18. (canceled)
 19. A system for detecting a trachea of a patient, comprising: a processor; and a memory, including instructions stored thereon, which, when executed by the processor cause the system to: associate a connected component in a current slice image of a plurality of slice images with a corresponding connected component in a previous slice image of the plurality of slice images based on a connectivity criterion; and identify each connected component in the current slice image associated with the connected component in the previous slice image as the trachea based on a length of the connected component.
 20. The system according to claim 19, wherein the instructions, when executed by the processor, cause the system to: obtain a 3D model of a patient's chest; generate the plurality of slice images of the 3D model along the axial direction; and identify the connected component in each of the plurality of slice images.
 21. The system according to claim 19, wherein a 3D model is generated based on image data obtained by an imaging device using a tomographic technique, radiography, a tomogram produced by a computerized axial tomography scan, magnetic resonance imaging, ultrasonography, contrast imaging, fluoroscopy, nuclear scans, or positron emission tomography.
 22. The system according to claim 19, wherein the instructions, when executed by the processor, cause the system to finalize an active object in the previous slice image.
 23. The system according to claim 19, wherein the plurality of slice images are spaced at an equal distance apart from each other.
 24. The system according to claim 22, wherein the instructions, when executed by the processor, cause the system to calculate a length of a finalized active object by multiplying a number of the plurality of slice images including the finalized active object minus one and the distance between each slice image.
 25. The system according to claim 22, wherein, when the length of the finalized active object is greater than or equal to 70 mm, the instructions, when executed by the processor, cause the system to indicate that the trachea is identified.
 26. The system according to claim 22, wherein, when the length of the finalized active object is greater than or equal to 30 mm but less than 70 mm, the instructions, when executed by the processor, cause the system to indicate that the trachea is potentially identified.
 27. The system according to claim 22, wherein, when the length of the finalized active object is less than 30 mm, the instructions, when executed by the processor, cause the system to indicate that the trachea has not been identified.
 28. The system according to claim 22, wherein finalizing of the active object in the previous slice image is based on an association parameter.
 29. The system according to claim 28, wherein the association parameter is an area ratio calculated by dividing an area of the connected component in the current slice image by an area of the corresponding connected component in the previous slice image.
 30. The system according to claim 28, wherein the association parameter is a ratio between a number of coordinates of the connected component in the current slice image, which match coordinates of a corresponding active object in the previous slice image, and a number of non-matching coordinates of the connected component in the current slice image.
 31. The system according to claim 28, wherein the association parameter is an area of the connected component in the current slice image.
 32. The system according to claim 28, wherein the instructions, when executed by the processor, cause the system to remove a label of a corresponding active object in the previous slice image as an active object when the association parameter is greater than a predetermined value.
 33. The system according to claim 32, wherein the instructions, when executed by the processor, cause the system to remove the label of the connected component in the current slice image as an active object when the association parameter is greater than the predetermined value.
 34. The system according to claim 28, wherein an active object is finalized when the association parameter is less than a predetermined value.
 35. The system according to claim 28, wherein the instructions, when executed by the processor, cause the system to label the connected component in the current slice image as an active object when the association parameter is greater than or equal to a first predetermined value and less than or equal to a second predetermined value.
 36. A system for detecting a trachea of a patient, comprising: a processor; and a memory, including instructions stored thereon, which, when executed by the processor cause the system to: label a connected component in a top slice image of a plurality of slice images as an active object; associate the connected component in a current slice image of the plurality of slice images with a corresponding connected component in a previous slice image of the plurality of slice images based on a connectivity criterion; label each connected component in the current slice image associated with a connected component in the previous slice image as the active object; and identify the active object as the trachea based on a length of the active object.
 37. The system according to claim 36, wherein a connected component in the current slice image is associated with the corresponding connected component in the previous slice image when at least one of: coordinates of a pixel in the connected component in the current slice image matches coordinates of a pixel in the corresponding connected component in the previous slice image; a difference between a center of mass of the connected component in the current slice image and a center of mass of the corresponding connected component in the previous slice image is less than a predetermined value; or a difference between an area of the connected component in the current slice image and an area of the corresponding connected component in the previous slice image is less than a predetermined value.
 38. A system for detecting a trachea of a patient, comprising: a processor; and a memory, including instructions stored thereon, which, when executed by the processor cause the system to: associate a connected component in a current slice image of a plurality of slice images with a corresponding connected component in a previous slice image of the plurality of slice images based on a connectivity criterion; and identify each connected component in the current slice image associated with the connected component in the previous slice image as the trachea based on a length of the connected component, wherein a connected component in the current slice image is associated with the corresponding connected component in the previous slice image when at least one of: coordinates of a pixel in the connected component in the current slice image matches coordinates of a pixel in the corresponding connected component in the previous slice image; a difference between a center of mass of the connected component in the current slice image and a center of mass of the corresponding connected component in the previous slice image is less than a predetermined value; or a difference between an area of the connected component in the current slice image and an area of the corresponding connected component in the previous slice image is less than a predetermined value. 